package com.cty.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: cty
 * @Date: 2020/3/12 17:14
 * @Description:  控制器
 * @version: 1.0
 */
@Controller
public class DemoController {
    @RequestMapping("demo")
    public String demo(){
        System.out.println("执行demo");
        return "demo.jsp";
    }

    @RequestMapping("demo2")
    public String demo2(){
        System.out.println("demo2");
        return "demo2.jsp";
    }
}
